#!/usr/bin/env python3

from pylab import *

fp = open('weights_dcds.txt', 'w')


# 670个采样点
# @162.5kHz
w_size = 160

for cnt in range(w_size):
    for os in range(16):
        if cnt >= 22 and cnt <=77:
            w = 1./56
        elif cnt >= 100 and cnt <= 150:
            w = -1./51
        else:
            w = 0

        fp.write('%12.8f '%(w)) 

    fp.write('\n')
fp.close()

#w_size = 160

#for cnt in range(w_size):
#    for os in range(16):
#        if cnt >= 21 and cnt <=65:
#            w = 1./45
#        elif cnt >= 90 and cnt <= 133:
#            w = -1./44
#        else:
#            w = 0

#        fp.write('%12.8f '%(w)) 

#    fp.write('\n')
#fp.close()




